/*
 * CSERVERNETWORKOBJ.h
 *
 *  Created on: 24.10.2009
 *      Author: oli
 */

#ifndef CSERVERNETWORKOBJ_H_
#define CSERVERNETWORKOBJ_H_

#include "../../raknet/source/AutoRPC.h"
#include "../../raknet/source/NetworkIDManager.h"

//using namespace RakNet;

class CServerNetworkObj : NetworkIDObject
{
public:
	CServerNetworkObj();
	~CServerNetworkObj();
	
	bool Init(unsigned short unSysAdress);

	virtual int AUTO_RPC_CALLSPEC RouteChatMessage(const char *str, RakNet::AutoRPC* networkCaller);

	NetworkIDManager m_NetIDMan;
	RakNet::AutoRPC	m_RPC;
	NetworkID m_NetID;
};

#endif /* CSERVERNETWORKOBJ_H_ */